﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class System_UserList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginUsername.Text = Session["LoginUsername"].ToString();

        string userStr = "SELECT * FROM tb_user;";
        UserGridView.DataSource = DBControl.Search(userStr, null);
        UserGridView.DataBind();
    }
    protected void AddBtn_Click(object sender, EventArgs e)
    {
        Response.Redirect("UserAdd.aspx");
    }
}